L   *L*

languages 17
Last Error… menu item 31, 65, 122
launching Prograph documents 25, 68
Launch… menu item 39
Launch… menu item (compiler) 448, 452
"length" primitive 331
level of indirection 380
Library and Active List radio buttons 131
Library file 449
LineTo 388
Link Inclusion List check box (compiler) 459
link map file name (compiler) 461
linking (compiler) 459
Linking Options check boxes (compiler) 456
List 19, 88, 89, 518, 595, 601, 623
List menu item 19, 54, 443
list multiplex 462
List of Instances scrolling list 130
List root 624
list-average example XPrim 568
list-to-list primitive 282
list? primitive 360, 461
ListDeleteSlot 543
ListEmptySlot 544, 558
ListGetSlot 544
ListInsertSlot 545
ListSetLength 545
ListSetSlot 546
ListStretch 546
ln primitive 306
load 263
Load button 35
Load File at Start Up 67
Load File on New 33, 67
load primitive 271, 463-467
Local 15, 86, 95, 603
    creating 15
        method 604
        operation 620
            components 604
Local Heritage… menu item 70
Local menu item 50, 440
Local to Method… menu item 51
    Cancel 51
    Name 51
    OK 51
Locals 10, 90, 462
LocalTalk 263
LocalToGlobal 407
locating
    operations by name 44
    strings 44
Locator Applications check boxes (compiler) 453
lock-block primitive 317, 379
lock-string primitive 317
log10 primitive 307
Loop 19, 88, 89, 462, 601, 623
Loop menu item 19, 54, 443
loop multiplex 462
Loop root 624

M   *M*

Mac Address 18, 87, 96, 608
Mac Address menu item 50, 441
Mac Constant 17, 87, 96, 608, 621
Mac Constant menu item 50, 440
Mac Constants information dialog 61
Mac Fields information dialog 63
Mac Get Address 622
Mac Get Field 18, 87, 96, 374, 379, 380, 608, 621
Mac Get Field menu item 51, 441
Mac Global 17, 87, 96, 608, 621
Mac Global menu item 50, 440
Mac Globals information dialog 62
Mac Match 17, 87, 96, 608, 621
Mac Match menu item 50, 440
Mac Methods 17, 61, 169, 363, 379, 597
    essential 381
    icon 363
    Inject 54
Mac Methods Info 468
Mac Methods information dialog 61
Mac Set Field 18, 87, 96, 374, 376, 379, 380, 608, 622
Mac Set Field menu item 441
Mac Structs information dialog 63
mac structure definition 27
mac-type primitive 360
macintosh 518
    constant 621
    methods 603
    records 597
    toolbox 598
    value(s) 597
Macintosh Classic 353
Macintosh constant 163
Macintosh data types
    C_ABlock 525
    C_EventRecord 525
    C_Handle 525
    C_Point 525
    C_Ptr 525
    C_Rect 534
Macintosh Resource Types 269
Macintosh structures 263, 468
Macintosh Toolbox 17, 26, 276, 363
    essential Mac Methods 381
    icon 12, 17, 437
Macintosh types
    Point 276
    Rect 276
MacsBug Symbols check box (compiler) 456
main program method 47
main routine 560
Make Backups 35, 67
Make Execute Only menu item 48
make-direct primitive 317
make-handle primitive 317
make-list primitive 292
make-pointer primitive 318
MakeC_boolean 547
MakeC_Handle 550
MakeC_integer 547
MakeC_list 548
MakeC_none 548
MakeC_Ptr 551
MakeC_real 548, 569, 571
MakeC_Rect 551
MakeC_RGBColor 552
MakeC_string 549
Make_instance 552
mantissa 596
Match 86, 95, 603, 621
    components 607
Match Arity 45
Match operation 13, 462
    execution 13
    name 13
Match operation menu item 49, 439
Match Pattern 44
max primitive 307
Member 542, 553, 577
Memory 314
memory allocation 379
Memory Manager 463
Memory Status menu item 65
Menu 156, 172
    Balloon Help 156
    Tools 47
    update 172
menu bar event 171
Menu Click 171
Menu editable-text field 133
Menu editor 132-135
    Balloon 134
    Bold 135
    Check 135
    Control 135
    Delete 134
    Disable Item 134
    Disable Menu 133
    Insert After 134
    Insert Before 134
    Instance 134
    invoking 132
    Italic 135
    Item 133
    Key 134
    Keys 135
    Menu 133
    Method 133
    Option 135
    Outline 135
    Shadow 135
    Shift 135
    Styles 135
    Underline 135
Menu Item 156, 350, 352
    About… 171
    Balloon Help 156
    Compact 47
    Make Execute Only 47
    Uncompact 47
Menu Item ID 354
Menu Item system class
    active? 210
    check? 211
    key 210
    method 211
    name 210
    owner 210
    style 211
menu key 171
Menu system class
    active? 207
    balloon 209, 211
    enabled? 208
    item list 208
    keys 208
    menu record 208
    name 207
    owner 207
Menu title selection 154
MenuID 354
menus 256
    general features 31
message 161, 608
meth-com primitive 343
meth-com-g primitive 344
meth-com-s primitive 344
Method
    compact 47
Method editable-text field 133
method names 340
method reference 437
method selection 614
method(s) 4, 6-9, 594, 599
    arity 599
    cases 8
    components 599
    execution functions 610
message 610
    Get 7, 599
        arity 599
    initialization 7, 13, 599
    overshadowing 614
    Plain 7
    Set 7, 599
        arity 599
    Simple 599
Methods 341, 342
Methods information dialog 59
methods primitive 344
Methods to Load dialog 35
Methods… menu item 70
middle primitive 335
min primitive 307
Miscellaneous Standard Suite 123
Miscellaneous Utilities, Mac Methods 419
Modal check box 139
ModalDialog 415
Mode 601
modifier keys 163
modifiers 161, 162
mouse clicks 256
Mouse Down 171, 173, 174, 175
Mouse Techniques 163
mouseDown 161
mouseUp 161
Move 387
MoveTo 387
MPW 469
    object files 449
MPW C 469, 521
    building compiled XPrims 567
    building interpreted XPrims 564
    building XCode 586
    global data register 567
main routine 566
MultiFinder 158
    using with compiler 448
multiple executions 106
multiplex 18, 53, 462, 601, 610, 623
munge-string primitive 335

N   *N*

Name 601
Name editable-text field 130
Name of Text Window dialog 36
names 170
    lower-case 170
naming conventions
    C code 522
native 475
natural 475
natural languages 593
NBP-Close primitive 254, 327, 495
NBP-Confirm primitive 254
NBP-Lookup primitive 254
NBP-Open primitive 255
NBP-Register primitive 255
networkEvt 161
New 553, 577
New element 27
New menu item 33
New menu item (compiler) 450
new Prograph element 67
new Text window 36
New Text… menu item 36
new-block primitive 318, 379
NewHandle 378
NewN 554, 577
NewPtr 378
next case 21, 608
Next Case menu item 21, 54, 442
nil 608
none 518, 595
not primitive 297
NOTE
Naming convention 170
    System Class methods 170
NoteAlert 416
Notify 158, 160, 171
null 519, 595
null event 171
nullEvent 161
number? primitive 361
NumToStr 554

O   *O*

object
    copy 41
    cut 41
    de-select 27
    delete 41
    paste 41
    replicate 41
    specifier 124
object C 521, 583
object file name (compiler) 461
object-oriented programming (OOP) 3
object-to-address primitive 319
ObscureCursor 382
OffsetPoly 405
OffsetRect 394
online help
    Attributes 60
    Classes 59
    Data Types 57
    Last Error… 65
    Mac Constants 61
    Mac Fields 63
    Mac Globals 62
    Mac Methods 61
    Mac Structs 63
    Methods 59
    Options… 66
    Persistents 60
    Primitives 57
    Universal Methods 58
Open 173
    database 504
Open Application 123, 158
Open button 270
Open Document 123, 158
Open Parent 97
open primitive 272
Open Text… menu item 36
open-serial-port primitive 327
opening files
    selective vs. incremental load 33-35
opening resource files, Mac Methods 408
OpenPicture 402
OpenPoly 404
OpenResFile 408
Open… menu item 33
Open… menu item (compiler) 450
operation 4, 601
    comments 84
    components 601
    conditions 601
    connecting/disconnecting 84
    Constant 12, 49, 438
    Continue 442
    control 601
    controls 53, 441
    de-annotated 27
    default control 602
    deleting 83
    dragging 84
    error 20
    Evaluate 16, 50, 440
    execution sequence 610
    Fail 443
    failure 20
    Finish 442
    Get 14, 50, 439
    Instance generator 13, 49, 439
    Local 15, 50, 440
    Local to Method… 51
    Mac Address 50, 441
    Mac Constant 50, 440
    Mac Get Field 441
    Mac Global 50, 440
    Mac Match 50, 440
    Mac Set Field 51, 441
    Match 13, 49, 439
    mode 601
    name 601
    naming 83
    Next Case 442
    Opers to Local 51
    outarity 601
    Partition 19
    Persistent 13, 49, 439
    Repeat 18, 53, 442
    runtime name determination 614
    search origin 601
    Set 14, 50, 439
    Simple 49, 53, 438, 441
    strengths 610
    success 20
    Super 15, 53, 442
    system-supplied 4
    Terminate 442
    transformation 84
    name change 85
    user-defined 4
operation calls
    context-determined reference 615
    data-determined reference 616
    explicit reference 615
    search origin
    Super 616
    simple operation 615
    universal method vs. external 615
operation icons 12, 436
    annotations 438
operation manipulation
    key combinations 89
operations 9-18, 594
    annotating 86-88
    click spots
    left and right 93
    connectors 10
    datalinks 10
    execution 9
    general information 9, 612-614
    input bar 10
    inputs 9
    manipulation of groups 90
    names 9, 11
    opening 93
    output bar 10
    outputs 9
    plain mode 614-622
    repeat mode 622, 625
    roots 10
    selection of groups 90
    side-effects 9
    terminal(s) 10
    use 9
Opers 86
Opers menu 48-52, 438-441
    Constant 49, 438
    Evaluate 50, 440
    Get 50, 439
    Instance 49, 439
    Local 50, 440
    Local to Method… 51
    Mac Address 50, 441
    Mac Constant 50, 440
    Mac Get Field 51, 441
    Mac Global 50, 440
    Mac Match 50, 440
    Mac Set Field 51, 441
    Match 49, 439
    Opers to Local 15, 51, 90
    Persistent 49, 439
    Set 50, 439
    Simple 49, 438
Opers to Local menu item 15, 51, 90
Option check box 135
Option key 163
Option-click 97
Option-Cmd-drag 67
Option-zoom 29
optionKey 163
Options Dialog
    Cmd-click 27
Options… menu item 33, 35, 37, 66, 129
    File Preferences 67
    Initial File 33, 66
    Load File on New 33
    Make Backups 35
    Save Settings 69
Options… menu item (compiler) 448, 453-454
or primitive 297
order of execution 611
origin 348
osEvt 161, 162
Other Locators check boxes (compiler) 453
outarity 594, 598, 601
Outline check box 135
Output 601, 603, 620
    components 607
output bar 10, 54, 599, 600
Output Link Map check box (compiler) 460
Ovals, Mac Methods 398

P   *P*

pack primitive 292, 461
Page Setup… menu item 37
Page Setup… menu item (compiler) 451
PaintArc 400
PaintOval 398
PaintPoly 405
PaintRect 397
PaintRoundRect 399
parameter block 378
parameter passing 370
parameters
    value 371
    VAR 371, 373
ParamText 416
parent class 4
    icon 74
Partition 19, 88, 89, 625
Partition menu item 19, 54, 444
Partition Size (compiler) 457
Pascal 17, 26, 370, 376, 377, 378
    array definitions 377
Pascal code
    writing 468
Pascal Interface 521
Paste menu item 40
Paste menu item (compiler) 452
paste object 91
Paste Object menu item 41
paste-text primitive 357
Path ID
    Invalid 494
Pen and Line Drawing, Mac Methods 384
PenMode 386
PenNormal 367, 387
PenPat 387
PenSize 367, 386
pers-com primitive 345
Persistent operation menu item 49, 439
persistent(s) 13, 23, 86, 95, 594, 598, 603
    changing values 81
    components 598, 604
    creating 81
    inputs 13
    name 13, 81, 598
    operation 619
    outputs 13
    value 598
persistents 4
Persistents information dialog 60
persistents primitive 345
Persistents window 81
pi primitive 308
PicComment 403
PICT 35, 364
Pict Specification editor 144
Pict system class
    active? 212
    balloon 213
    click method 214
    grow? 213
    location 213
    move? 213
    name 212
    owner 212
    rsrc number 214
    rsrc record 214
    size 213
    visible? 212
Pictures, Mac Methods 402
pixel 29
PixMap 381
PixMapToRegion 381
Plain 7
plain method icon 7
Plain radio button 138
Plain w/Shadow radio button 138
PlotIcon 419
point 595
point-in-rect? example XPrim 571
point-to-ints primitive 278
pointer 373, 374, 378
pointer dereference 372
pointer to a function 380
pointers 525
Points, Mac Methods 406
points-to-rect primitive 279
Polygons, Mac Methods 404
Pop-up Menu 215
    title 153
Pop-up Menu editor 153
Pop-up Menu system class
    active? 215
    balloon 216
    click method 217
    control record 217
    fixed? 217
    grow? 216
    location 216
    move? 216
    name 215
    owner 215
    size 216
    style 218
    title? 218
    value 218
    value list 218
    visible? 215
popup-menu primitive 259
port 348, 349
power primitive 308
prefix primitive 335
presentation conventions 1
primitive(s) 4, 11, 245, 615
    (in) 288
    (join) 288
    (length) 288, 461
    * 300, 456, 461
    ** 300, 461
    + 301, 456, 461
    ++ 301, 461
    +1 301, 456, 461
    - 302, 456, 461
    -- 302, 461
    -1 302, 456, 461
    < 295
    <= 295
    = 295, 621
    > 296
    >= 296
    abs 303
    accept 284, 462
    acos 303
    address-to-object 313
    ancestors 339
    and 297
    annuity 303
    answer 284
    answer-v 285
    asin 304
    ask 285
    atan 304
    atan2 304
    ATP-Close 251
    ATP-Get-Request 252
    ATP-Get-Response 252
    ATP-Open 252
    ATP-Send-Request 253
    ATP-Send-Response 253
    attach-l 289
    attach-r 289
    attr-com 339
    attributes 340
    auto-text 356
    begin-drawing 366, 367
    bit-and 260, 461
    bit-not 260, 461
    bit-or 260, 461
    bit-shift-l 261, 461
    bit-shift-r 261, 461
    bit-xor 261, 461
    block-address 313, 379
    block-size 314
    boolean 359
    boolean? 461
    break-serial-port 324
    byte-length 331
    called-from-get 340
    called-from-meth 340
    called-from-set 341
    calls-to-get 341
    calls-to-meth 342
    calls-to-set 342
    categories
        AppleTalk 250
        Application 245, 256-259
        Bit 245, 260-261
        Byte Stream 245, 263
        Data 245, 265
        Database 245
        Environment 246
        File 246, 269
        Graphics 246, 276-280
        I/O 246, 284-287
        Instances 246, 247, 281-282
        Interpreter control 246, 283
        Lists 246, 288-294
        Logical/Relational 247, 295-296, 299
        Math 247, 300-306, 312
        Memory 247, 313-322
        Serial Port 323
        Strings 248, 330-338
        System 248, 339-345, 346
        System Class 248
        Text 248, 356-358
        Type 248, 359-362
    categoriesAppleTalk 245
    children 342
    choose 265
    class-com 343
    classes 343
    clear-bytes-map 263
    clear-text 356
    close 269
    close-serial-port 324
    compact-memory 314
    compiled? 283, 575
    compound 305
    configure-sport 325
    copy 265, 461
    copy-text 356
    cos 305
    count-sport-input 325
    create 269
    cut-text 357
    debug 283, 462
    delete 270
    descendants 343
    detach-l 289
    detach-nth 290
    detach-r 290
    display 286, 462
    div 305, 456, 461
    drag-rect 169, 276, 368
    draw-style-text 256
    end-drawing 366, 367
    evaluate 456
    exp 306
    extract-text 357
    file-size 270
    find-bounds 276
    find-instance 281
    find-item 256
    find-menu 257
    find-menu-a 257
    find-sorted 290
    find-window 258
    find-window-a 258
    format 331
    from-ascii 334
    from-bytes 264
    from-handle 314, 380
    from-pointer 314
    from-string 334
    gestalt 267
    gestalt-attribute 268
    get-file 270
    get-integer 315
    get-nth 291, 461
    get-point 315
    get-position 271
    get-real 315
    get-rect 316
    get-sport-buffer 326
    get-sport-refs 326
    get-string 316, 380
    get-text 316
    grow-rect 277
    halt 283
    idiv 306, 461
    "in" 330
    insert-nth 291
    insert-text 357
    inst-to-list 281
    instance? 359
    integer-to-string 335
    integer? 360, 461
    ints-to-point 277
    ints-to-rect 278
    ints-to-rgb 278
    is-double? 258
    is-drag? 259
    "join" 330
    kill-serial-port 326
    "length" 331
    list-to-inst 282
    list? 360, 461
    ln 306
    load 271, 463-467
    lock-block 317, 379
    lock-string 317
    log10 307
    mac-type 360
    make-direct 317
    make-handle 317
    make-list 292
    make-pointer 318
    max 307
    meth-com 343
    meth-com-g 344
    meth-com-s 344
    methods 344
    middle 335
    min 307
    munge-string 335
    NBP-Close 254, 495
    NBP-Confirm 254
    NBP-Lookup 254
    NBP-Open 255
    NBP-Register 255
    new-block 318, 379
    not 297
    number? 361
    object-to-address 319
    open 272
    open-serial-port 327
    or 297
    pack 292, 461
    paste-text 357
    pers-com 345
    persistents 345
    pi 308
    point-to-ints 278
    points-to-rect 279
    popup-menu 259
    power 308
    prefix 335
    print-text 358
    print-window 286
    prograph-file 272, 462
    put-file 272
    put-integer 319, 380
    put-point 319
    put-real 320
    put-rect 320
    put-string 320
    put-text 321
    rand 308
    read 273, 379
    read-line 273
    real? 361, 461
    receive-serial-port 327
    rect-to-ints 279
    rect-to-points 280
    rename 274
    reverse 292
    rgb-to-ints 280
    round 308
    round-down 309
    round-up 309
    save 274, 464-467
    sc-activate-wind 346
    sc-aevent-begin 346
    sc-aevent-dispatch 347
    sc-aevent-end 347
    sc-background? 348
    sc-begin-drawing 348, 369
    sc-begin-update 348
    sc-click-witem 349
    sc-delete-item 350
    sc-draw-witem 350
    sc-end-drawing 350, 369
    sc-end-update 350
    sc-find-witem 351
    sc-get-wind 351
    sc-hilite-witem 351
    sc-idle-edit 352
    sc-insert-item 352
    sc-key-button 352
    sc-key-edit 353
    sc-key-list 353
    sc-key-menu 354
    sc-show-ballon 354
    sc-tab-witem 354
    sc-zoom-wind 355
    select 286
    send-serial-port 327
    send-sport-done 328
    set-dialog-font 287
    set-nth 293, 461
    set-nth! 293, 461
    set-position 275
    set-seed 310
    set-sport-buffer 328
    settable 345, 462
    shallow-copy 266
    show 287
    sign 310
    sign-extend 310
    sin 311
    sort 293
    split-nth 294
    sport-configuration 329
    sqrt 311
    string-address 321
    string-length 336
    string-to-integer 336
    string? 361, 461
    suffix 337
    switch 265
    tan 311
    test-all? 262
    test-bit? 262
    test-one? 262
    to-ascii 337
    to-bytes 264
    to-handle 321
    to-pointer 322, 380
    to-string 337
    tokenize 338
    trace 283, 462
    trap? 268
    trunc 311
    type 362
    unlock-block 322
    unlock-string 322
    unpack 294, 461
    wait-double? 259
    write 275
    write-line 275
    xor 298
    ≠ 298
    ≤ 299
    ≥ 299
    ÷ 312, 456, 461
    ÷÷ 312, 461
primitives 597
    data types 597
    System Class 345
    Types button 57
primitives icon 12, 436
primitives information dialog 57
Primitives List
    Byte Stream 245
    Database 245
    Environment 246
    System Class 248
primitives that compiler does not support 462
primitives that generate inline code (compiler) 461
Print Document 123, 158
print-text primitive 358
print-window primitive 286
printing
    Constants 37
    Match values 37
Print… menu item 37
    any methods window 38
    Attribute window 39
    Case window 39
    classes window 37
    Persistents window 39
    Text window 39
Print… menu item (compiler) 451
procedure 370, 371
Prograph 263
    annotation 53
    as visual language 3, 425
    C Interface 521
    definitions 594-595
    documents
        launching 25, 68
    elements 594
        nested sets 594
    environment
    initial file preferences 66
    message preferences 66
    options 66
        interpreter 105
        launch 68
        notation 594
    object files 449
program 597
        components 597
program elements 4
program files 449
    semantics 608
    syntax 609
    using Macintosh Toolbox 363
Prograph 2.0 35
Prograph Classic 462
    compact code 46
    Interpreter and Compiler 127
    launching 26
    make execute only 47
    Toolbox support 468
Prograph Compiler 462
Prograph data types in C
    C_boolean 523
    C_instance 523
    C_integer 523
    C_list 523
    C_none 523
    C_object 524
    C_real 523
    C_string 523
    C_undefined 523
    NULL 523
Prograph editor 4
    error prevention 31
    general rules 25-31
    shortcut key combinations 31
Prograph Extensions folder 26, 68
Prograph language
    case sensitivity 3
    overview 3
    use of text 3
Prograph menus 124
Prograph objects 469
Prograph splash screen 68
Prograph vs. Macintosh
    constants 608
    Get, Set 608
Prograph vs. other languages 606
    case structure 600
    class hierarchies 599
    Constant 607
    execution control 613
    externals 598
    Get 603
    injection 614
    instance generator 604
    Local method 605
    Match 607
    methods 599
    multiplexes 625
    persistent 604
    persistents 598
    Set 604
    Simple operations 603
    success, failure 613
    terminal, roots 602
Prograph window 162
prograph-file primitive 272, 462
Project Info… menu item (compiler) 455
    Compile Options 456
    Linking Options 456
Project menu (compiler) 454-460
    Build Application… 459
    Build Library… 459
    Disassemble… 454
    File Info… 455
Project Info… 455
    Run 460
    Update 454
    Update All 454
Propagate Attribute menu item 42
Propagate Comments menu item 64
Pt2Rect 395
PtInRect 169, 368, 395
Ptr 378, 379
PtToAngle 396
put-file primitive 272
put-integer primitive 319, 380
put-point primitive 319
put-real primitive 320
put-rect primitive 320
put-string primitive 320
put-text primitive 321

Q   *Q*

query 608
question mark (?) as match pattern 44
QuickDraw 364
Quit Application 123, 158
Quit menu item 40
Quit menu item (compiler) 452
quoted string 596